﻿<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="SiteList.aspx.cs" Inherits="Medianamik.UI.ConfigManagement.SiteList" MasterPageFile="../MasterPages/MedianamikModule.Master" %>

<asp:Content ID="ContextMenuContent" ContentPlaceHolderID="ContextMenu" runat="server">
	<a href="/medianamik/configmanagement/sitemanagement.aspx" class="Action BtAjoutSite"><%=Resources("Medianamik_ConfigurationManagement", "AddSite") %></a>
	<a href="#" class="Action BtAnnuler-Inactif"><%=Resources("Medianamik_Global", "Cancel") %></a>
</asp:Content>

<asp:Content ID="CenterContent" ContentPlaceHolderID="CenterContent" runat="server">
	<telerik:RadGrid runat="server" ID="grdSites" EnableEmbeddedSkins="false" Skin="Medianamik" AutoGenerateColumns="false" OnItemCommand="grdSites_ItemCommand" OnNeedDataSource="grdSites_NeedDataSource" OnItemDataBound="grdSites_ItemDataBound" OnDeleteCommand="grdSites_DeleteCommand" AllowMultiRowSelection="false">
		<MasterTableView DataKeyNames="ID">
			<Columns>
				<telerik:GridBoundColumn DataField="DisplayName" />
				<%--<telerik:GridHyperLinkColumn DataTextField="DisplayName" DataNavigateUrlFields="ID" DataNavigateUrlFormatString="/medianamik/contentmanagement/nodelist.aspx?parentnodeid={0}"  />--%>
				<telerik:GridTemplateColumn HeaderStyle-Width="1%" HeaderText="Actions">
					<HeaderStyle HorizontalAlign="Center" />
					<ItemStyle CssClass="Actions" />
					<ItemTemplate>
						<table border="0" cellpadding="0" cellspacing="0" align="center">
							<tr>
								<td><a href="<%# "sitemanagement.aspx?siteid=" + Eval("ID").ToString() %>"><img src="../images/Icones/Ico_Edition.gif" alt="" width="16" height="16" /></a></td>
								<td><med:ConfirmedDeleteButton ID="btnDeleteSite" CommandArgument='<%# Eval("ID") %>' CommandName="Delete" runat="server" ConfirmText="<%$ Resources: Medianamik_ConfigurationManagement, ConfirmDeleteSiteText %>" /></td>
							</tr>
						</table>
					</ItemTemplate>
				</telerik:GridTemplateColumn>
			</Columns>
			<NoRecordsTemplate>
			    <asp:Literal ID="NoRecords" runat="server" Text="<%$ Resources: Medianamik_ContentManagement, NoRecordsToDisplay %>" />
			</NoRecordsTemplate>
		</MasterTableView>
		<ClientSettings EnableRowHoverStyle="true"></ClientSettings>
	</telerik:RadGrid>
</asp:Content>
